<!DOCTYPE html>



  


<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">


  
  
    
    
  <script src="/blog_test/lib/pace/pace.min.js?v=1.0.2"></script>
  <link href="/blog_test/lib/pace/pace-theme-minimal.min.css?v=1.0.2" rel="stylesheet">







<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/blog_test/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/blog_test/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/blog_test/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />



  <link rel="icon" type="image/png" sizes="32x32" href="/blog_test/images/favicon.ico?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/blog_test/images/favicon.ico?v=5.1.4">






  <meta name="keywords" content="hexo,next,A0xpg" />





  <link rel="alternate" href="/blog_test/atom.xml" title="A0xpg 博客" type="application/atom+xml" />






<meta name="description" content="一、准备工作1.安装node.js和npm（必须）验证安装是否成功，在cmd中输入node -v ,出现相应的版本号则安装成功，由于新版的nodejs已经集成了npm，所以输入 npm -v 查看版本 2.修改npm全局安装模式的路径(可选)打开 nodejs安装目录&#x2F;node_modules&#x2F;npm&#x2F;.npmrc ，修改此文件为（位置自定义）： prefix &#x3D; D:\nodejs\npm_gl">
<meta name="keywords" content="hexo,next,A0xpg">
<meta property="og:type" content="article">
<meta property="og:title" content="win10使用hexo+next快速搭建博客">
<meta property="og:url" content="https:&#x2F;&#x2F;a0xpg.gitee.io&#x2F;blog_test&#x2F;2019&#x2F;12&#x2F;03&#x2F;win10%E4%BD%BF%E7%94%A8Hexo%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2&#x2F;index.html">
<meta property="og:site_name" content="A0xpg 博客">
<meta property="og:description" content="一、准备工作1.安装node.js和npm（必须）验证安装是否成功，在cmd中输入node -v ,出现相应的版本号则安装成功，由于新版的nodejs已经集成了npm，所以输入 npm -v 查看版本 2.修改npm全局安装模式的路径(可选)打开 nodejs安装目录&#x2F;node_modules&#x2F;npm&#x2F;.npmrc ，修改此文件为（位置自定义）： prefix &#x3D; D:\nodejs\npm_gl">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https:&#x2F;&#x2F;a0xpg.gitee.io&#x2F;images&#x2F;loading.gif">
<meta property="og:updated_time" content="2019-12-03T10:02:25.690Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https:&#x2F;&#x2F;a0xpg.gitee.io&#x2F;images&#x2F;loading.gif">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/blog_test/',
    scheme: 'Muse',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://a0xpg.gitee.io/blog_test/2019/12/03/win10使用Hexo搭建博客/"/>





  <title>win10使用hexo+next快速搭建博客 | A0xpg 博客</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

<a href="https://github.com/a0xpg" target="_blank" rel="noopener" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; left: 0; transform: scale(-1, 1);" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style></a>



    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blog_test/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">A0xpg 博客</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blog_test/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/blog_test/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/blog_test/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/blog_test/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/blog_test/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://a0xpg.gitee.io/blog_test/blog_test/2019/12/03/win10%E4%BD%BF%E7%94%A8Hexo%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="A0xpg">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="https://pic1.58cdn.com.cn/m1/bigimage/n_v2df5fc346207846b8913f719db19338fe.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="A0xpg 博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">win10使用hexo+next快速搭建博客</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-12-03T11:21:19+08:00">
                2019-12-03
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog_test/categories/%E4%B8%AA%E4%BA%BA%E7%AC%94%E8%AE%B0/" itemprop="url" rel="index">
                    <span itemprop="name">个人笔记</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  965
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  3
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="一、准备工作"><a href="#一、准备工作" class="headerlink" title="一、准备工作"></a>一、准备工作</h1><h2 id="1-安装node-js和npm（必须）"><a href="#1-安装node-js和npm（必须）" class="headerlink" title="1.安装node.js和npm（必须）"></a>1.安装node.js和npm（必须）</h2><p>验证安装是否成功，在cmd中输入<code>node -v</code> ,出现相应的版本号则安装成功，由于新版的nodejs已经集成了npm，所以输入 <code>npm -v</code> 查看版本</p>
<h2 id="2-修改npm全局安装模式的路径-可选"><a href="#2-修改npm全局安装模式的路径-可选" class="headerlink" title="2.修改npm全局安装模式的路径(可选)"></a>2.修改npm全局安装模式的路径(可选)</h2><p>打开 <code>nodejs安装目录/node_modules/npm/.npmrc</code> ，修改此文件为（位置自定义）：</p>
<p><code>prefix = D:\nodejs\npm_global_modules</code></p>
<h2 id="3-修改源（可选）"><a href="#3-修改源（可选）" class="headerlink" title="3.修改源（可选）"></a>3.修改源（可选）</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line">#获得原来的镜像地址</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">2</span></pre></td><td class="code"><pre><span class="line">npm get registry</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">3</span></pre></td><td class="code"><pre><span class="line">#设置为淘宝镜像</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">4</span></pre></td><td class="code"><pre><span class="line">npm config set registry http:&#x2F;&#x2F;registry.npm.taobao.org&#x2F;</span></pre></td></tr></table></figure>



<h2 id="4-安装hexo"><a href="#4-安装hexo" class="headerlink" title="4.安装hexo"></a>4.安装hexo</h2><p><code>npm install -g hexo</code></p>
<a id="more"></a>



<h1 id="二、快速搭建"><a href="#二、快速搭建" class="headerlink" title="二、快速搭建"></a>二、快速搭建</h1><p>主题使用的是<a href="https://github.com/theme-next/hexo-theme-next" target="_blank" rel="noopener">next</a></p>
<p>当然不是从GitHub下载一步步修改，是二次修改后的版本，next版本是<code>5.1.4</code></p>
<p>链接: <a href="https://pan.baidu.com/s/17XfVF0-aKNyO58qv-FS3Gg" target="_blank" rel="noopener">https://pan.baidu.com/s/17XfVF0-aKNyO58qv-FS3Gg</a> 提取码: qhgh</p>
<p>下载后直接在blog_template目录下构建运行</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line">hexo g    #生成</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">2</span></pre></td><td class="code"><pre><span class="line">hexo s    #启动</span></pre></td></tr></table></figure>



<p><img src="/images/loading.gif" data-original="image-20191203144423713.png" alt="image-20191203144423713.png"></p>
<h2 id="1-修改说明"><a href="#1-修改说明" class="headerlink" title="1.修改说明"></a>1.修改说明</h2><blockquote>
<p>注：二次版本是根据<a href="https://www.jianshu.com/p/f054333ac9e6" target="_blank" rel="noopener">hexo的next主题个性化教程:打造炫酷网站</a>修改后的版本，旨在快速搭建漂亮的博客</p>
</blockquote>
<p>修改后的内容有：</p>
<ol>
<li>在右上角或者左上角实现fork me on github </li>
<li>添加RSS </li>
<li>添加动态背景 </li>
<li>实现点击出现桃心效果 </li>
<li>修改文章内链接文本样式 </li>
<li>修改文章底部的那个带#号的标签 </li>
<li>在每篇文章末尾统一添加“本文结束”标记 </li>
<li>主页文章添加阴影效果 </li>
<li>在网站底部加上访问量 </li>
<li>网站底部字数统计 </li>
<li>设置网站的图标Favicon </li>
<li>实现统计功能 </li>
<li>添加顶部加载条 </li>
<li>在文章底部增加版权信息</li>
<li>添加 来必力  跟帖 </li>
<li>文章加密访问 </li>
<li>为博客加上萌萌的宠物 </li>
</ol>
<h2 id="2-修改模版"><a href="#2-修改模版" class="headerlink" title="2.修改模版"></a>2.修改模版</h2><h3 id="1、怎么修改卡片动画"><a href="#1、怎么修改卡片动画" class="headerlink" title="1、怎么修改卡片动画"></a>1、怎么修改卡片动画</h3><p> <a href="https://github.com/xiazeyu/live2d-widget-models" target="_blank" rel="noopener">https://github.com/xiazeyu/live2d-widget-models</a> </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line"># 1.在根目录下安装模块</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">2</span></pre></td><td class="code"><pre><span class="line">npm install live2d-widget-model-wanko</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">3</span></pre></td><td class="code"><pre><span class="line"># 2.修改根的配置文件_config.yml</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">4</span></pre></td><td class="code"><pre><span class="line">use: live2d-widget-model-wanko</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">5</span></pre></td><td class="code"><pre><span class="line"># 3.重新构建启动</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">6</span></pre></td><td class="code"><pre><span class="line">hexo g</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">7</span></pre></td><td class="code"><pre><span class="line">hexo s</span></pre></td></tr></table></figure>



<h3 id="2、怎么设置密码"><a href="#2、怎么设置密码" class="headerlink" title="2、怎么设置密码"></a>2、怎么设置密码</h3><p>在根目录的配置文件中开启加密</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line"><span class="attr">encrypt:</span> </span></pre></td></tr><tr><td class="gutter"><pre><span class="line">2</span></pre></td><td class="code"><pre><span class="line">  <span class="attr">enable:</span> <span class="literal">true</span></span></pre></td></tr></table></figure>

<p> 在文章开头格式中添加 </p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line"><span class="meta">---</span></span></pre></td></tr><tr><td class="gutter"><pre><span class="line">2</span></pre></td><td class="code"><pre><span class="line"><span class="attr">title:</span> <span class="string">"测试文章加密，密码888888"</span></span></pre></td></tr><tr><td class="gutter"><pre><span class="line">3</span></pre></td><td class="code"><pre><span class="line"><span class="attr">password:</span> <span class="number">888888</span></span></pre></td></tr><tr><td class="gutter"><pre><span class="line">4</span></pre></td><td class="code"><pre><span class="line"><span class="attr">abstract:</span> <span class="string">是该博客的摘要，会显示在博客的列表页</span></span></pre></td></tr><tr><td class="gutter"><pre><span class="line">5</span></pre></td><td class="code"><pre><span class="line"><span class="attr">message:</span> <span class="string">这个是博客查看时，密码输入框上面的描述性文字</span></span></pre></td></tr><tr><td class="gutter"><pre><span class="line">6</span></pre></td><td class="code"><pre><span class="line"><span class="meta">---</span></span></pre></td></tr></table></figure>



<h3 id="3、怎么添加版权信息"><a href="#3、怎么添加版权信息" class="headerlink" title="3、怎么添加版权信息"></a>3、怎么添加版权信息</h3><p> 在文章开头格式中添加 <code>copyright: true</code> 即可</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line"><span class="meta">---</span></span></pre></td></tr><tr><td class="gutter"><pre><span class="line">2</span></pre></td><td class="code"><pre><span class="line"><span class="attr">title:</span> <span class="string">"添加版权"</span></span></pre></td></tr><tr><td class="gutter"><pre><span class="line">3</span></pre></td><td class="code"><pre><span class="line"><span class="attr">copyright:</span> <span class="literal">true</span></span></pre></td></tr><tr><td class="gutter"><pre><span class="line">4</span></pre></td><td class="code"><pre><span class="line"><span class="meta">---</span></span></pre></td></tr></table></figure>



<h3 id="4、添加图片"><a href="#4、添加图片" class="headerlink" title="4、添加图片"></a>4、添加图片</h3><p>使用的是hexo-asset-image，把图片扔到与文章同名的文件夹下即可</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line">![你想要输入的替代文字](xxxx&#x2F;图片名.jpg)</span></pre></td></tr></table></figure>

<p>参考已解决的方法</p>
<p>1.首先把blog（hexo）目录下的_config.yml里的psot_asset_folder:设置为true</p>
<p>2.在blog（hexo）目录下执行:</p>
<p>npm install hexo-asset-image –save<br>3.在blog（hexo）目录下Git Bash Here，运行hexo n “博客名”来生成md博客时，会在_post目录下看到一个与博客同名的文件夹。</p>
<p>4.将想要上传的图片先扔到文件夹下，然后在博客中使用markdown的格式引入图片：</p>
<p><code>![你想要输入的替代文字](xxxx/图片名.jpg)</code><br>ps：因为博客名和文件夹名字相同，所以不需要绝对路径，只要xxxx是文件夹的名字就可以了。</p>
<h3 id="5、修改其他"><a href="#5、修改其他" class="headerlink" title="5、修改其他"></a>5、修改其他</h3><p>基本上都在根目录或主题目录下的配置文件中修改</p>
<ol>
<li><p>比如修改网站ico</p>
<p><code>blog_template\themes\next\source\images\favicon.ico</code></p>
</li>
<li><p>修改头像</p>
<p>根目录/_config.yml</p>
<p><code>avatar: url或路径</code></p>
</li>
</ol>
<h3 id="6、hexo-blog-encrypt-‘importKey’-of-undefined-问题"><a href="#6、hexo-blog-encrypt-‘importKey’-of-undefined-问题" class="headerlink" title="6、hexo-blog-encrypt ‘importKey’ of undefined 问题"></a>6、hexo-blog-encrypt ‘importKey’ of undefined 问题</h3><blockquote>
<p>使用chrome打开linux + http的加密文章，输入密码会提示<code>TypeError: Cannot read property &#39;importKey&#39; of undefined</code>,原因是http是不安全的，被chrome限制了，详情可见<a href="https://www.chromium.org/Home/chromium-security/security-faq" target="_blank" rel="noopener">security-faq</a></p>
</blockquote>
<p>解决办法：</p>
<ol>
<li>https</li>
<li>使用Firefox或其他浏览器</li>
<li>理论上让chrome信任该网站也行</li>
</ol>

      
    </div>
    
    
    

    <div>
	
    	    <div>
    
        <div style="text-align:center;color: #ccc;font-size:14px;">-------------本文结束<i class="fa fa-paw"></i>感谢您的阅读-------------</div>
    
</div>

	
    </div>

    <div>
      
        
<div class="my_post_copyright">
  <script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>
  
  <!-- JS库 sweetalert 可修改路径 -->
  <script src="https://cdn.bootcss.com/jquery/2.0.0/jquery.min.js"></script>
  <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
  <p><span>本文标题:</span><a href="/blog_test/2019/12/03/win10%E4%BD%BF%E7%94%A8Hexo%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/">win10使用hexo+next快速搭建博客</a></p>
  <p><span>文章作者:</span><a href="/" title="访问 A0xpg 的个人博客">A0xpg</a></p>
  <p><span>发布时间:</span>2019年12月03日 - 11:21</p>
  <p><span>最后更新:</span>2019年12月03日 - 18:02</p>
  <p><span>原始链接:</span><a href="/blog_test/2019/12/03/win10%E4%BD%BF%E7%94%A8Hexo%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/" title="win10使用hexo+next快速搭建博客">https://a0xpg.gitee.io/blog_test/2019/12/03/win10%E4%BD%BF%E7%94%A8Hexo%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/</a>
    <span class="copy-path"  title="点击复制文章链接"><i class="fa fa-clipboard" data-clipboard-text="https://a0xpg.gitee.io/blog_test/2019/12/03/win10%E4%BD%BF%E7%94%A8Hexo%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/"  aria-label="复制成功！"></i></span>
  </p>
  <p><span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" title="Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)">署名-非商业性使用-禁止演绎 4.0 国际</a> 转载请保留原文链接及作者。</p>  
</div>
<script> 
    var clipboard = new Clipboard('.fa-clipboard');
      $(".fa-clipboard").click(function(){
      clipboard.on('success', function(){
        swal({   
          title: "",   
          text: '复制成功',
          icon: "success", 
          showConfirmButton: true
          });
        });
    });  
</script>


      
    </div>

    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div></div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>打赏</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="https://pic1.58cdn.com.cn/m1/bigimage/n_v2df5fc346207846b8913f719db19338fe.gif" alt="A0xpg 微信支付"/>
        <p>微信支付</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="https://pic1.58cdn.com.cn/m1/bigimage/n_v2df5fc346207846b8913f719db19338fe.gif" alt="A0xpg 支付宝"/>
        <p>支付宝</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/blog_test/tags/hexo/" rel="tag"><i class="fa fa-tag"></i> hexo</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/blog_test/2019/05/26/hello-world/" rel="next" title="Hello Word - Hexo">
                <i class="fa fa-chevron-left"></i> Hello Word - Hexo
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/blog_test/2019/12/05/test-comments/" rel="prev" title="测试关闭评论">
                测试关闭评论 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="https://pic1.58cdn.com.cn/m1/bigimage/n_v2df5fc346207846b8913f719db19338fe.gif"
                alt="A0xpg" />
            
              <p class="site-author-name" itemprop="name">A0xpg</p>
              <p class="site-description motion-element" itemprop="description">记录学习历程</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blog_test/archives%7C%7Carchive">
              
                  <span class="site-state-item-count">4</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/blog_test/categories/index.html">
                  <span class="site-state-item-count">2</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/blog_test/tags/index.html">
                  <span class="site-state-item-count">2</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          
            <div class="feed-link motion-element">
              <a href="/blog_test/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/a0xpg" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-globe"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mailto:a0xpg@qq.com" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-globe"></i>E-Mail</a>
                  </span>
                
            </div>
          

          
          

          
          
            <div class="links-of-blogroll motion-element links-of-blogroll-inline">
              <div class="links-of-blogroll-title">
                <i class="fa  fa-fw fa-link"></i>
                友情链接
              </div>
              <ul class="links-of-blogroll-list">
                
                  <li class="links-of-blogroll-item">
                    <a href="https://blog.a0xpg.com/" title="A0xpg-blog" target="_blank">A0xpg-blog</a>
                  </li>
                
              </ul>
            </div>
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#一、准备工作"><span class="nav-number">1.</span> <span class="nav-text">一、准备工作</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#1-安装node-js和npm（必须）"><span class="nav-number">1.1.</span> <span class="nav-text">1.安装node.js和npm（必须）</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-修改npm全局安装模式的路径-可选"><span class="nav-number">1.2.</span> <span class="nav-text">2.修改npm全局安装模式的路径(可选)</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-修改源（可选）"><span class="nav-number">1.3.</span> <span class="nav-text">3.修改源（可选）</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4-安装hexo"><span class="nav-number">1.4.</span> <span class="nav-text">4.安装hexo</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#二、快速搭建"><span class="nav-number">2.</span> <span class="nav-text">二、快速搭建</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#1-修改说明"><span class="nav-number">2.1.</span> <span class="nav-text">1.修改说明</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-修改模版"><span class="nav-number">2.2.</span> <span class="nav-text">2.修改模版</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1、怎么修改卡片动画"><span class="nav-number">2.2.1.</span> <span class="nav-text">1、怎么修改卡片动画</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2、怎么设置密码"><span class="nav-number">2.2.2.</span> <span class="nav-text">2、怎么设置密码</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3、怎么添加版权信息"><span class="nav-number">2.2.3.</span> <span class="nav-text">3、怎么添加版权信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#4、添加图片"><span class="nav-number">2.2.4.</span> <span class="nav-text">4、添加图片</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#5、修改其他"><span class="nav-number">2.2.5.</span> <span class="nav-text">5、修改其他</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#6、hexo-blog-encrypt-‘importKey’-of-undefined-问题"><span class="nav-number">2.2.6.</span> <span class="nav-text">6、hexo-blog-encrypt ‘importKey’ of undefined 问题</span></a></li></ol></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div class="copyright">&copy; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">A0xpg</span>

  
</div>


<!-- 新增访客统计代码 -->

<div class="busuanzi-count">
    <span class="site-uv">
      <i class="fa fa-user"></i>
      访问用户： <span class="busuanzi-value" id="busuanzi_value_site_uv"></span> 人
    </span>
    <div class="powered-by"></div>
    <span class="site-uv">
      <i class="fa fa-eye"></i>
      访问次数： <span class="busuanzi-value" id="busuanzi_value_site_pv"></span> 次
    </span>
    <!-- 博客字数统计 -->
    <span class="site-pv">
      <i class="fa fa-pencil"></i>
      博客全站共： <span class="post-count">1.1k</span> 字
    </span>
</div>
<!-- 新增访客统计代码 END-->













        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  
    <script type="text/javascript" src="/blog_test/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blog_test/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blog_test/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blog_test/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog_test/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog_test/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  

  
  
    <script type="text/javascript" src="/blog_test/lib/canvas-nest/canvas-nest.min.js"></script>
  


  


  <script type="text/javascript" src="/blog_test/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog_test/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/blog_test/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/blog_test/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/blog_test/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  


<!-- 页面点击小红心 -->
<script type="text/javascript" src="/blog_test/js/src/love.js"></script>
<script>!function(e){var c=Array.prototype.slice.call(document.querySelectorAll("img[data-original]"));function i(){for(var r=0;r<c.length;r++)t=c[r],0<=(n=t.getBoundingClientRect()).top&&0<=n.left&&n.top<=(e.innerHeight||document.documentElement.clientHeight)&&function(){var t,n,e,i,o=c[r];t=o,n=function(){c=c.filter(function(t){return o!==t})},e=new Image,i=t.getAttribute("data-original"),e.onload=function(){t.src=i,n&&n()},e.src=i}();var t,n}i(),e.addEventListener("scroll",function(){var t,n;t=i,n=e,clearTimeout(t.tId),t.tId=setTimeout(function(){t.call(n)},500)})}(this);</script><script src="/blog_test/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","model":{"jsonPath":"/blog_test/live2dw/assets/wanko.model.json"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":true},"log":false,"tagMode":false});</script></body>
</html>
